﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace ALinq.BBS.Common.Config
{
    public class ScoreElement : ConfigurationElement
    {
        /// <summary>
        /// 用户发表帖子，获得的积分。
        /// </summary>
        public int AddPost
        {
            get
            {
                return (int) base["addPost"];
            }
            set
            {
                base["addPost"] = value;
            }
        }
        /// <summary>
        /// 用户帖子被删除后，获得的积分。
        /// </summary>
        public int DeletePost
        {
            get
            {
                return (int) base["deletePost"];
            }
            set
            {
                base["deletePost"] = value;
            }
        }
        /// <summary>
        /// 用户帖子被评为精华后，获得的积分。
        /// </summary>
        public int DistillatePost
        {
            get
            {
                return (int)base["distillatePost"];
            }
            set
            {
                base["distillatePost"] = value;
            }
        }
        /// <summary>
        /// 用户发表回复，获得的积分。
        /// </summary>
        public int AddReply
        {
            get
            {
                return (int) base["addReply"];
            }
            set
            {
                base["addReply"] = value;
            }
        }

        public int Register
        {
            get { return (int) base["register"]; }
            set { base["addReply"] = value; }
        }

        public int Login
        {
            get { return (int) base["login"]; }
            set { base["login"] = value; }
        }
    }
}